package com.ruoyi.pcj.dto.friend;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.pcj.domain.PcjLtFriendRecords;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 好友最新一条消息
 *
 * @ClassName: FriendNewMsgDto
 * @Author : mashuai
 * @Description: TODO
 */
@Data
public class FriendNewMsgDto implements Serializable {
    private String id;

    private String content;
    private Long sendUserId;
    private Long receiverUserId;
    private String contentType;
    /**
     * 最新一条发送/接受消息的时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

}
